package proxy.staticproxy;

/**
 * 开发工具代理类
 * Created by thiswhyme on 2019/03/15.
 */
public class DevToolStaticProxcy {

    private IDevTool devTool;

    public DevToolStaticProxcy(IDevTool tool) {
        this.devTool = tool;
    }

    public void develop() {
        doBefore();
        devTool.develop();
        doAfter();
    }

    private void doBefore() {
        System.out.println("安装开发工具。");
    }

    private void doAfter() {
        System.out.println("开始debug。");
    }
}
